<template>
	<view>
		<view>
			<u-cell-group>
				<!-- <u-cell-item :arrow="false" icon="" title="站点ID" value="12345678"></u-cell-item> -->
				<u-cell-item :arrow="false" icon="" title="站点名称" :value="mydata.mystorename"></u-cell-item>
				<u-cell-item :arrow="false" icon="" title="联系人" :value="mydata.usename"></u-cell-item>
				<u-cell-item :arrow="false" icon="" title="联系电话" :value="mydata.mobile"></u-cell-item>
				<u-cell-item :arrow="false" icon="" title="所在省/市" value="广东省清远市清城区"></u-cell-item>
				<!-- <u-cell-item :arrow="false" icon="" title="详细地址" value="高新区天安智谷01"></u-cell-item> -->
			</u-cell-group>
		</view>
		<view style="margin-top: 30rpx; margin-left: 20rpx; margin-right: 20rpx;">
			<u-button @click="logout" type="error">退出登录</u-button>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
		mydata:{
			mystorename: '',
			usename:'',
			mobile:""
		}
		};
	},
	onLoad() {
		console.log(this.$store.state.userdetail.name, 'st')
		console.log(this.$store.state.userdetail.store.name, 'stt')
		this.mystorelist = this.$store.state.userdetail.store.list
		this.mydata.mystorename = this.$store.state.userdetail.store.name
		this.mydata.usename = this.$store.state.userdetail.name
		this.mydata.mobile = this.$store.state.userdetail.mobile
	},
	methods:{
		logout() {
			uni.removeStorageSync('lifeData');
			uni.navigateTo({
				url: '/pages/init/init'
			})
		}
	}
}
</script>

<style lang="scss">

</style>
